package com.example.myapplication1.publishFriendCircle;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import java.util.List;

public interface ItemTouchHelperAdapter<T> {

    @Nullable
    Context getContext();

    //数据交换
    boolean onItemMove(int fromPosition, int toPosition);
    //数据删除
    boolean onItemRemove(int position);

    List<Integer> getCannotDragIndexList();

    @NonNull
    List<T> getData();
}
